project(
  settings
  LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 17)
find_package(Qt5 COMPONENTS Widgets Core REQUIRED)
add_definitions(-DQLS_SETTINGS_LIBRARY)

set(_srcs
    src/qls_settings.cpp
)

set(_headers
    include/settings/qls_settings.h
    include/settings/qls_settings_global.h
)

add_library(settings SHARED ${_srcs} ${_headers})
target_link_libraries(settings PUBLIC
    Qt5::Widgets Qt5::Core ${CMAKE_THREAD_LIBS_INIT}
)
target_include_directories(settings PUBLIC include)
